import request from '@/utils/request'

export const updateUserInfo = (data) => {
    return request({
      url: `/users/${data.id}/info`, 
      method: 'put',
      data: {
        nickname: data.nickname,
        email: data.email,
        avatar: data.avatar
      }
    })
}